config BR2_PACKAGE_LTTNG_BABELTRACE
	bool "lttng-babeltrace"
	depends on BR2_PACKAGE_LTTNG_TOOLS
	select BR2_PACKAGE_UTIL_LINUX
	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
	select BR2_PACKAGE_LIBGLIB2
	# libglib2 needs thread support and gettext which needs wchar support, and 
	# we also depends on util-linux which needs wchar
	depends on BR2_USE_WCHAR
	depends on BR2_TOOLCHAIN_HAS_THREADS
	# util-linux depends on largefile support
	depends on BR2_LARGEFILE
	help
	  Babeltrace is part of the LTTng 2.x project.

	  This project provides trace read and write libraries, as
	  well as a trace converter. A plugin can be created for any
	  trace format to allow its conversion to/from another trace
	  format.

	  Having this tool on the target is not mandatory. You can
	  transfer the binary trace output from the target to your
	  development workstation, and use babeltrace here. Buildroot
	  automatically builds a host babeltrace in
	  $(O)/host/usr/bin/babeltrace as a dependency of the
	  lttng-tools package.

	  http://lttng.org

comment "lttng-babeltrace needs WCHAR, threading and LARGEFILE support"
	depends on BR2_PACKAGE_LTTNG_TOOLS && \
		(!BR2_USE_WCHAR || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS)
